#include "httpgetthread.h"
#include"httpmgr.h"
HttpGetThread::HttpGetThread(QObject *parent):QThread(parent)
{

}

void HttpGetThread::setData(QUrl url, ReqId id, Modules mod)
{
    _url=url;
    _id=id;
    _mod=mod;
}

void HttpGetThread::run()
{
    qDebug()<<"http get thread running";
    qDebug()<<"id: "<<_id<<" _mod ："<<_mod;
    HttpMgr::GetInstance()->GetHttpReq(_url,_id,_mod);
    exec();
}
